//
//  CarouselView.h
//  MyFramework
//
//  Created by 余洋 on 2018/9/13.
//  Copyright © 2018年 余洋. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CarouselViewDelegate <NSObject>

/**
 点击图片的代理
 */
- (void)clickImage:(NSInteger)index;

@end

@interface CarouselView : UIView

@property (nonatomic, weak) id<CarouselViewDelegate> delegate;

/**
 轮播图片的url
 */
@property (nonatomic, strong) NSMutableArray *picUrlArray;

/**
 自动轮播事件间隔, 默认 3s
 */
@property (nonatomic, assign) NSTimeInterval timeInterval;

/**
 图片显示模式
 */
@property (nonatomic, assign) UIViewContentMode contentMode;

@end
